package services

import (
    "studygo/internal/models"
    "studygo/internal/repositories"
)

type PersonsService struct {
    repo *repositories.PersonRepository
}

func NewUserService(repo *repositories.PersonRepository) *PersonsService {
    return &PersonsService{repo: repo}
}

func (s *PersonsService) GetUsers() ([]models.User, error) {
    return s.repo.GetUsers()
}